package com.cn.mmd.service;

import com.cn.mmd.mapper.TGroupMapper;
import com.cn.mmd.model.TGroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/4 0004.
 */
@Service("tGroupLService")
public class TGroupLServiceImpl implements TGroupLService {

    @Autowired
    private TGroupMapper tGroupMapper;

    @Override
    public int insertSelective(TGroup record) {
        return tGroupMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(TGroup record) {
        return tGroupMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer groupid) {
        return tGroupMapper.deleteByPrimaryKey(groupid);
    }

    @Override
    public List<TGroup> selectByPaging(TGroup tGroup) {
        return tGroupMapper.selectByPaging(tGroup);
    }

    @Override
    public TGroup selectByPrimaryKey(Integer teachinggroupid) {
        return tGroupMapper.selectByPrimaryKey(teachinggroupid);
    }
}
